package ibps.service;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import ibps.entity.BpmExec;

@Repository
public interface IBpmExecService extends JpaRepository<BpmExec, String> {
	/**
	 * 通过流程id获取所有的节点
	 * 
	 * @param liuchengId
	 * @return
	 */
	@Query(value = "SELECT * FROM `ibps_bpm_exec` WHERE PROC_INST_ID_ = ?1", nativeQuery = true)
	List<BpmExec> findBpmByINSTId(String liuchengId);
}
